var t = getApp(), a = require("../../../../utils/wxParse.js");

Page({
    data: {
        loading: "/assets/images/wx.png"
    },
    onLoad: function(e) {
        var i = this, d = this, n = e.id || wx.getStorageSync("dynamicCondition");
        i.setData({
            id: n
        })
        // , wx.showLoading({
        //     title: "加载中...",
        //     mask: !0
        // })
        , wx.request({
            url: t.globalData.dicc + "news/get",
            data: {
                id: i.data.id
            },
            success: function(t) {
                wx.hideLoading(), console.log(t.data.data.contentFormat), a.wxParse("article", "html", t.data.data.content, i, 5), 
                wx.setNavigationBarTitle({
                    title: t.data.data.title
                }), d.setData({
                    title: t.data.data.title
                });
            }
        }), wx.removeStorageSync("dynamicCondition");
    },
    onShareAppMessage: function() {
        return {
            title: this.data.title,
            path: "/pages/index/index?flag=1&id=" + this.data.id
        };
    }
});